home *** CD-ROM | disk | FTP | other *** search
/ Super PC 34 / Super PC 34 (Shareware).iso / spc / UTIL / DJGPP2 / V2MISC / CSDPMI1S.ZIP / SRC / CWSDPMI / VCPI.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-13  |  1.3 KB  |  38 lines

  1. /*  Copyright (C) Aug 5th 1991 Y.Shibata */
  2.  
  3. /*  Change Protect Mode Structure  */
  4. typedef    struct {
  5.     word32    page_table;    /*  Page Table Address  */
  6.     word32    gdt_address;    /*  GDT Address         */
  7.     word32    idt_address;    /*  IDT Address         */
  8.     word16    ldt_selector;    /*  LDT Selector        */
  9.     word16    tss_selector;    /*  TR  Selector        */
  10.     word32    entry_eip;    /*  Protect Mode Entry Address  */
  11.     word16    entry_cs;
  12.     }    CLIENT;
  13.  
  14. typedef    struct {
  15.     word32    offset32;
  16.     word16    selector;
  17.     }    far32;
  18.  
  19. typedef    struct {
  20.     word16    offset;
  21.     word16    segment;
  22.     }    far16;
  23.  
  24. word16    vcpi_present(void);    /*  VCPI Installed Check         */
  25. word16    vcpi_maxpage(void);    /*  VCPI Max Page Number     */
  26. word16    vcpi_capacity(void);    /*  VCPI Unallocated Page Count  */
  27. word16    vcpi_alloc(void);    /*  VCPI Allocate Page           */
  28. void    vcpi_free(word16);    /*  VCPI Deallocate Pgae         */
  29. word16    vcpi_get_pic(void);    /*  VCPI Get 8259A INT Vector    */
  30. void    vcpi_set_pic(word16);    /*  VCPI Set 8259A INT Vector    */
  31. word16    vcpi_get_secpic(void);    /*  VCPI Get 8259A INT Vector slave */
  32. void    vcpi_set_pics(word16,word16);    /*  VCPI Set 8259A INT Vectors master,slave */
  33.  
  34. word32    get_interface(void far *table,void *g);
  35.  
  36. void    ems_init(void);        /*  EMS page allocation     */
  37. void    ems_free(void);        /*  Deallocated EMS Page    */
  38.